package belastungstest.mobapp.fhfl.mobappbelastungstest;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

/**
 * Created by ViceBrot on 07.07.2014.
 */
public class Fragment_Graph extends Fragment {
    public View graphView = null;
    private View view = null;


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState)
    {
        view = inflater.inflate(R.layout.graph_layout, container, false);

        if( graphView != null )
            ((LinearLayout)view.findViewById(R.id.graph_container)).addView(graphView);

        return view;
    }


    public void setGraphView(View graphView) {
        this.graphView = graphView;
    }
}
